import java.util.Random;
import java.awt.Point;
public class computerai {
	private Random rand;

	
	public computerai()
	{
		rand = new Random();
	}
	
	public Point firemissle(){
		Point shot = new Point();
		int xshot = rand.nextInt(10);
		int yshot = rand.nextInt(10);
		shot = new Point(xshot, yshot);
		return shot;
	}
	
	public int randomlocation (){
		int r = rand.nextInt(10);
		return r;
	}
	
	public int randomdir(){
		int direction = rand.nextInt(10)%2;
		return(direction+1);
	}
	
}